package com.jvm.jdbc.demo1;

import org.junit.jupiter.api.Test;

/**
 * <p>
 *
 * </p>
 *
 * @author qingshan
 * @since 2020-10-11 15:19
 */
public class TemplatePatternImpl2 extends TemplatePattern {

    @Override
    protected void method3() {
        System.out.println("method3()在子类TemplatePatternImpl2中实现了！！");
    }

    /* (non-Javadoc)
     * @see com.jak.pattern.template.example.TemplatePattern#method2()
     */
    @Override
    public void method2() {
        System.out.println("子类TemplatePatternImpl2覆盖了父类的method2()方法！！");
    }

    @Test
    public void test(){
        TemplatePattern t2 = new TemplatePatternImpl2();
        t2.templateMethod();
    }
}
